<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>试用期管理</title>

    <!-- Bootstrap -->
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
<!-- 导航 -->
    <nav class="navbar navbar-default ">
      <div class="container">
        <!-- 小屏幕按钮和logo -->
        <div class="navbar-header">
          <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a href="#" class="navbar-brand">RM admin</a>
        </div>
        <!-- 小屏幕按钮和logo -->
        <!-- 导航 -->
        <div class="collapse navbar-collapse">
           <ul class=" nav navbar-nav ">
             <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span> &nbsp;后台首页</a></li>
             <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                   组织结构管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/organization/department">部门管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/organization/job">岗位管理</a></li>

                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    人事信息管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/employee/enterAddEmployee">员工入职管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/period/enterPeriod/">试用期管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/dept/out">部门调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/post/out">岗位调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/leave/out">员工离职管理</a></li>

                </ul>
            </li>
             <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    员工信息中心
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/infoemployee/list">员工信息中心</a></li>


                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    报表管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/statement/newHire">新聘员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/departure">离职员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/deptTurn">部门调动员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/postTurn">岗位调动员工报表</a></li>
                </ul>
            </li>
           </ul>
           <ul class=" nav navbar-nav navbar-right ">
             <li class="dropdown">
                <a href="#" class=" dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">admin
                    <span class="caret"></span>
                </a>
            </li>

             <li><a href="http://localhost:8080/PMsystem/admin/exit"><span class="glyphicon glyphicon-off"></span>&nbsp;退出</a></li>
           </ul>
        </div>
        <!-- 导航 -->
      </div>
      </nav>
   <!-- 导航 -->
   <div class="container-fluid">
       <div class="row">
           <div class="col-md-2">
               <div class="panel-group" id="accordion">
                   <div class="panel panel-default">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseThree" style="text-decoration: none;">
                            查询试用期员工列表
                              </a>
                          </h4>
                      </div>
                      <div id="collapseThree" class="panel-collapse collapse in">
                          <div class="panel-body">
                              <table class="table table-hover">
                              <tbody>
                                <tr>
                                  <td style="border:none;"><a href="${pageContext.request.contextPath }/period/enterPeriod/" style="text-decoration: none;">员工转正</a></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>

                  <div class="panel panel-default">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseThreeo" style="text-decoration: none;">
                            已转正员工查询
                              </a>
                          </h4>
                      </div>
                      <div id="collapseThreeo" class="panel-collapse collapse in">
                          <div class="panel-body">
                              <table class="table table-hover">
                              <tbody>
                                <tr>
                                  <td style="border:none;"><a href="${pageContext.request.contextPath }/period/enterInquiry/" style="text-decoration: none;">已转正员工查询</a></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>
              </div>
           </div>


           <div class="col-sm-10">
           <!-- 主体内容 -->
           <div class="panel panel-info"  >
              <div class="panel-heading">
                  <h3 class="panel-title">查询员工</h3>
              </div>
              <div class="panel-body">
                  <form class="form-inline" role="form" action="${pageContext.request.contextPath }/period/getRequire" method="POST">
                     <div class="input-group">
                        <span class="input-group-addon" >员工编号</span>
                        <input type="text" class="form-control" placeholder="请输入员工编号" name="empId">
                    </div>--

                     <div class="input-group">
                        <span class="input-group-addon">姓名</span>
                        <input type="text" class="form-control" style="width: 200px;" placeholder="请输入姓名" name="empName">
                    </div>--
                    <div class="input-group">
                        <span class="input-group-addon">部门名称</span>
                        <select class="form-control" style="width: 200px;" name="deptId">
                       <option value="0">--请选择部门名称--</option>
                          <c:forEach items="${department}" var="item">
						     <option value="${item.deptId}" >${item.deptName}</option>
						  </c:forEach>
                        </select>
                    </div><br><br>
                    <div class="input-group">
                        <span class="input-group-addon">岗位名称</span>
                        <select class="form-control" style="width: 172px;" name="postId">
                        <option value="0">--请选择岗位名称--</option>
                          <c:forEach items="${post}" var="item">
						     <option value="${item.postId}" >${item.postName}</option>
						  </c:forEach>
                        </select>
                    </div>--
                    <div class="input-group">
                        <span class="input-group-addon">试用期状态</span>
                        <select class="form-control" style="width: 172px;" name="probState">
                        <option value="1">试用期</option>
                        <option value="4">已转正</option>
                        <option value="2">延期</option>
                        <option value="3">不录用</option>
                        </select>
                    </div><br><br>
                    <div class="input-group">
                        <span class="input-group-addon" >试用期开始日期</span>
                        <input type="date" class="form-control" style="width: 156px;" name="probDateS" value="2015-01-01">
                    </div>--
                    <div class="input-group" >
                        <span class="input-group-addon" >试用期结束日期</span>
                        <input type="date" class="form-control" style="width:146px; " name="probDateE" value="2020-01-01">
                        <span class="input-group-btn">
                              <button type="submit" class="btn btn-info">查询</button>
                        </span>
                    </div>
                  </form>
              </div>
          </div>
          <div class="panel panel-success">
              <div class="panel-heading">
                  <h3 class="panel-title">员工列表</h3>
              </div>
              <div class="panel-body" >
                    <table class="table table-hover" >

                        <thead>
                          <tr>
                            <th>员工编号</th>
                            <th>姓名</th>
                            <th>部门</th>
                            <th>岗位</th>
                            <th>试用期开始日期</th>
                            <th>试用期结束日期</th>
                            <th>操作</th>
                          </tr>
                        </thead>
                        <tbody>
                          <c:forEach items="${require_yun}" var="item">
						   <tr>
							   <td>${item.empId }</td>
							   <td>${item.empName }</td>
							   <td>${item.deptName }</td>
							   <td>${item.postName}</td>
							   <td>${item.probDateS}</td>
							   <td>${item.probDateE}</td>
							   <td width="300px">
                            <button type="button" class="btn btn-info" onclick="window.location.href='${pageContext.request.contextPath }/period/enterOperation?empId=${item.empId }'">员工考核</button>
                            </td>
						   </tr>
						   </c:forEach>
                        </tbody>
                      </table>
              </div>
          </div>
      </div>
     </div>
    </div>
   <!-- </div> -->



    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="<%=basePath%>js/jquery-3.2.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<%=basePath%>js/bootstrap.min.js"></script>
  </body>
</html>